package com.example.demo.service.serviceImpl;

import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.example.demo.mapper.TeasMapper;
import com.example.demo.model.Employee;
import com.example.demo.model.Teas;
import com.example.demo.service.TeasService;

@Service
public class TeasServiceImpl implements TeasService{

	@Resource
	private TeasMapper teasMapper;
	
	@Override
	public List<Map<String, Object>> findAll() {
		return teasMapper.findAll();
	}

	@Override
	public boolean delete(int id) {
		return teasMapper.delete(id);
	}

	@Override
	public void add(Teas emp) {
		teasMapper.add(emp);
	}

	@Override
	public boolean update(Teas tea) {
		return teasMapper.update(tea);
	}

	@Override
	public Teas finById(Integer eid) {
		return teasMapper.finById(eid);
	}

}
